home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Filing / s / GBPB11 < prev    next >
Text File  |  1995-08-26  |  2KB  |  45 lines

  1. ;   ####             #    #     # #
  2. ;   #   #            #    #       #          The FreeWare C library for
  3. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  4. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  5. ;   #   # ####  ###  ##   #     # #  #
  6. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  7. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  8. ;   ________________________________________________________________________
  9. ;
  10. ;   File:    Filing.s.GBPB11
  11. ;   Author:  Copyright © 1994, 1995 Sergio Monesi
  12. ;   Version: 1.01 (6 Jun 1995)
  13. ;   Purpose: Read directory entries (full version)
  14. ;   Mods:    6 June 1995 - changed procedure name to a more
  15. ;                          DeskLib-compliant style
  16.  
  17.         GET     ^.h.regdefs
  18.         GET     ^.h.swinos
  19.         GET     ^.h.macros
  20.  
  21. ; os_error *Filing_ReadFullDirEntry(char *dirname, void *buf,
  22. ;                                   int *number, int *offset,
  23. ;                                   int size, char *match);
  24.  
  25.         PREAMBLE
  26.         STARTCODE Filing_ReadFullDirEntry
  27. ;
  28.         MOV     ip, sp
  29.         STMFD   sp!, {r2-r6,lr}
  30.         LDMIA   ip, {r5,r6}
  31.         LDR     r4, [r3]
  32.         LDR     r3, [r2]
  33.         MOV     r2, r1
  34.         MOV     r1, r0
  35.         MOV     r0, #11
  36.         SWI     SWI_OS_GBPB + XOS_Bit
  37.         LDMVSFD sp!, {r2-r6,pc}^
  38.         MOV     r0,#0
  39.         LDMFD   sp, {r5,r6}
  40.         STR     r3, [r5]
  41.         STR     r4, [r6]
  42.         LDMFD   sp!, {r2-r6,pc}^
  43. ;
  44.         END
  45.